package com.lw.yygh.hospitalManage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lw.yygh.hospitalManage.mapper.OrderInfoMapper;
import com.lw.yygh.hospitalManage.model.OrderInfo;
import com.lw.yygh.hospitalManage.service.OrderService;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo> implements OrderService {
    //更新订单状态
    @Override
    public void updateOrder(String hosRecordId) {
        OrderInfo orderInfo = baseMapper.selectById( hosRecordId );
        orderInfo.setOrderStatus( -1 );
        baseMapper.updateById( orderInfo );
    }
}
